package com.mk.web.basic.primitive;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by WangChen on 2018/12/12 18:00.
 */
public class CASTest {

    public static void main(String [] args){
        AtomicInteger aInteger = new AtomicInteger(1);
        boolean b = aInteger.compareAndSet(1, 5);
        System.out.println(b + ">>" + aInteger);

    }
}
